class PersonNode:
    def __init__(self,name:str,age:int):
        self.name=name
        self.age=age
        print(self)
    
    def __str__(self):
        return f"{self.name} aged {self.age}"
    
    def eat(self,food:str):
        print(f"{self} is eating {food}")

def main():
    person=PersonNode("goldfish",30)
    person.eat("seaweed")
    print(person)